<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><%= title %></title>
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="/lib/AdminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="/lib/AdminLTE/css/skins/skin-blue.css">
    <link href="https://cdn.bootcss.com/wangEditor/10.0.13/wangEditor.min.css" rel="stylesheet">
</head>

<body class="hold-transition skin-blue">
<div class="wrapper">
    <% include ../common/header.ejs %>
    <div class="content-wrapper">
        <section class="content-header">
            <h1>个人日记手册
                <small>新增</small>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <a href="/user/index">
                        <i class="fa fa-dashboard"></i>
                        主页
                    </a>
                </li>
                <li>
                    <a href="/users/diary_manage">
                        个人日记手册
                    </a>
                </li>
                <li>
                    <a href="#">
                        新增日记
                    </a>
                </li>
            </ol>
        </section>
        <section class="content">
            <div class="row">
                <div class="col-md-8">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">添加日记</h3>
                        </div>
                        <form role="form" id="diaryForm">
                            <div class="box-body">
                                <div class="row">
                                    <div class="col-xs-6">
                                        <div class="form-group">
                                            <label for="diaryTitle">标题</label>
                                            <input type="text" class="form-control" name="title" id="diaryTitle" placeholder="请输入日记标题">
                                        </div>
                                    </div>
                                    <div class="col-xs-offset-3 col-xs-3">
                                        <div class="form-group">
                                            <label for="weather">天气</label>
                                            <input type="text" class="form-control" name="weather" id="weather" placeholder="今天天咋样">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="form-group">
                                            <label for="diaryContent">内容</label>
                                            <div id="diaryEditor"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="box-footer text-right">
                                <button type="button" class="btn btn-primary" id="saveDiary">保存</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <% include ../common/footer.ejs %>
</div>
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="/lib/AdminLTE/js/adminlte.min.js"></script>
<script src="https://cdn.bootcss.com/wangEditor/10.0.13/wangEditor.min.js"></script>
<script src="/javascripts/user/school_life/diary_add.js"></script>
</body>

</html>